<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={:time()}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">导航位置</label>
            <div class="layui-input-block">
                <select name="posid">

                    <option value="1" {if $row.posid==1}selected{/if}>顶部图标</option>
                    <option value="2" {if $row.posid==2}selected{/if}>顶部链接</option>
                    <option value="3" {if $row.posid==3}selected{/if}>中部图标</option>
                    <option value="4" {if $row.posid==4}selected{/if}>底部联系方式</option>
                    <option value="5" {if $row.posid==5}selected{/if}>底部图标</option>
                </select>
            </div>
            <input type="hidden" name="pid" class="layui-input"  value="0">
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">图标</label>
            <div class="layui-input-block layuimini-upload">
                <input name="pic" class="layui-input layui-col-xs6" lay-verify="required" lay-reqtext="请上传图标" placeholder="请上传图标" value="{$row.pic|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="pic" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_pic" data-upload-select="pic" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">导航名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" lay-reqtext="请输入导航名称" placeholder="请输入导航名称" value="{$row.title|default=''}">
                <tip>填写导航名称。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">导航链接</label>
            <div class="layui-input-block">
                <input type="text" name="href" id="href" class="layui-input" lay-reqtext="请输入导航链接" placeholder="请输入导航链接" value="{$row.href|default=''}">
                <tip>填写导航链接。</tip>
            </div>
        </div>

<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">选择图标</label>-->
<!--            <div class="layui-input-block">-->
<!--                <input type="text" id="icon" name="icon" lay-filter="icon" class="hide" value="{$row.icon|default=''}">-->
<!--            </div>-->
<!--        </div>-->

        <div class="layui-form-item">
            <label class="layui-form-label required">target属性</label>
            <div class="layui-input-block">
                {foreach ['_self','_blank','_parent','_top'] as $vo}
                <input type="radio" name="target" value="{$vo}" title="{$vo}" {if $row.target==$vo}checked=""{/if}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">导航排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" lay-reqtext="导航排序不能为空" placeholder="请输入导航排序" value="{$row.sort|default=''}" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注信息</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入备注信息">{$row.remark|default=''}</textarea>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>